#include "namepipe.hpp"

int main()
{
    namepipe npipe(PATH,User);

    npipe.OpenForRead();
    while(true)
    {
        std::string rmeassage;
        
        int n = npipe.GetMeassage(&rmeassage);
        if(n > 0)
            std::cout << rmeassage << std::endl;
        else
            break;
    }

    return 0;
}